/* 基础样式 */
:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --text-color: #2b2d42;
    --light-text: #8d99ae;
    --border-color: #e9ecef;
    --error-color: #ef233c;
    --success-color: #2ec4b6;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    padding-left: 5px;
    padding-top: 2px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

/* 登录容器 */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--background);
}

.login-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    color: var(--light-text);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background-color: var(--primary-hover);
}

.login-btn svg {
    transition: transform 0.3s ease;
}

.login-btn:hover svg {
    transform: translateX(4px);
}

/* 分割线 */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--light-text);
    font-size: 0.85rem;
    margin: 1rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

/* 社交登录 */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.social-btn.google {
    color: #db4437;
}

.social-btn.github {
    color: #24292e;
}

/* 页脚 */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 错误消息 */
.alert-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-message.error {
    background-color: rgba(239, 35, 60, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 1rem;
  }